<?php
//测试控制器类
class IndexController extends Controller{
    //动作方法
    public function index(){
      $db = M('blog');
        $data = $db->join("__category__ c JOIN __blog__ b ON c.cid=b.cid")->all();
        p($data);
    }
}
